//  此类存放用户的所有信息
//  UserInfo.h
//  YingkeWlanIOS
//
//  Created by FranklinPhill on 15/8/20.
//  Copyright (c) 2015年 FranklinPhill. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 1表示运营商；2表示代理商；3表示商家；4表示迈普自营人员；5表示迎客会员；6表示终端访客
 */
typedef NS_ENUM(NSInteger, UserType) {
    UserTypeBusiness = 1,
    UserTypePortal = 2,
    UserTypeMerchant = 3,
    UserTypeMaipu = 4,
    UserTypeMember = 5,
    UserTypeTerminal = 6
};

//商户信息
@interface TenantInfo : NSObject

@property (copy, nonatomic) NSString *address;                  //用户详细地址
@property (copy, nonatomic) NSString *area;                     //用户所在地(区)
@property (copy, nonatomic) NSString *areaCode;                 //用户所在地(区)号
@property (copy, nonatomic) NSString *authStatus;               //商家认证状态
@property (copy, nonatomic) NSString *businessEntity;           //企业法人
@property (copy, nonatomic) NSString *businessEntityTel;        //企业法人手机号
@property (copy, nonatomic) NSString *businessLisence;          //营业执照
@property (copy, nonatomic) NSString *businessLisencePhotoURL;  //营业执照照片URL地址
@property (copy, nonatomic) NSString *city;                     //用户所在城市
@property (copy, nonatomic) NSString *cityCode;                 //用户所在城市编码
@property (copy, nonatomic) NSString *dc;                       //用户所在DC的域名(该属性的值以keychain中的dc为准, 不直接使用)
@property (copy, nonatomic) NSString *dcName;                   //用户所在DC的名称
@property (copy, nonatomic) NSString *deliveryAddress;          //用户收货地址
@property (copy, nonatomic) NSString *email;                    //用户邮件地址
@property (copy, nonatomic) NSString *enterpriseFullName;       //企业全称
@property (copy, nonatomic) NSString *expirationDate;           //有效期截止日
@property (copy, nonatomic) NSString *groupId;                  //用户可管理的组织机构(默认-1, 即ROOT)
@property (copy, nonatomic) NSString *groupPath;                //用户可管理组织机构的路径(默认为/, 即根目录)
@property (copy, nonatomic) NSString *idPhotoBackURL;           //身份证反面URL地址
@property (copy, nonatomic) NSString *idPhotoFrontURL;          //身份证正面URL地址
@property (copy, nonatomic) NSString *identityCard;             //身份证号
@property (copy, nonatomic) NSString *industyTag;               //行业分类标签(例如火锅)
@property (copy, nonatomic) NSString *industyType;              //行业分类(例如餐饮)
@property (copy, nonatomic) NSString *isPhonePublic;            //电话号码是否公开
@property (copy, nonatomic) NSString *isRoot;                   //
@property (copy, nonatomic) NSString *lastLoginTime;            //最后登录时间
@property (copy, nonatomic) NSString *logoURL;                  //LOGO地址
@property (copy, nonatomic) NSString *nickName;                 //昵称
@property (copy, nonatomic) NSString *partment;                 //所在部门
@property (copy, nonatomic) NSString *password;                 //密码(该属性的值以keychain中为准, 不直接使用)
@property (copy, nonatomic) NSString *phone;                    //座机号码
@property (copy, nonatomic) NSString *post;                     //职位
@property (copy, nonatomic) NSString *province;                 //所在省份
@property (copy, nonatomic) NSString *provinceCode;             //所在省份编码
@property (copy, nonatomic) NSString *qq;                       //QQ号码
@property (copy, nonatomic) NSString *registTime;               //注册时间
@property (assign, nonatomic) UserRole role;                    //用户角色
@property (copy, nonatomic) NSString *roleDes;                  //用户角色描述
@property (copy, nonatomic) NSString *siteURL;                  //门户地址(首页预览门户的按钮点击地址)
@property (copy, nonatomic) NSString *storeArea;                //商户面积
@property (copy, nonatomic) NSString *storeCount;               //商户数量
@property (copy, nonatomic) NSString *storeLayer;               //商户楼层
@property (copy, nonatomic) NSString *storeName;                //商户名称
@property (copy, nonatomic) NSString *storeShareInfo;           //商户分享信息
@property (copy, nonatomic) NSString *tel;                      //手机号(也是用户的登录号码, 以keychain为准, 不直接使用)
@property (copy, nonatomic) NSString *tenantFullName;           //商户全称
@property (copy, nonatomic) NSString *tenantName;               //商户名称
@property (copy, nonatomic) NSString *tenantUID;                //商户ID(同userUID, 唯一编码, 以userUID为准)
@property (copy, nonatomic) NSString *userLogoURL;              //用户头像地址
@property (copy, nonatomic) NSString *userTypeDes;              //用户类型描述
@property (copy, nonatomic) NSString *username;                 //用户名称
@property (copy, nonatomic) NSString *verificationCode;         //验证码
@property (copy, nonatomic) NSString *weibo;                    //新浪微博号码
@property (copy, nonatomic) NSString *weixin;                   //微信号码

@end

//商家服务统计信息(在首页, 如果登录成功, 获取并补完以下信息)
@interface ServiceInfo : NSObject

@property (copy, nonatomic) NSString *amount;                   //账户余额(该属性在没有做支付模块前无用)
@property (copy, nonatomic) NSString *currentVistorCount;       //当前登录人数
@property (copy, nonatomic) NSString *deviceCount;              //设备数量
@property (copy, nonatomic) NSString *faultDeviceCount;         //故障设备数量
@property (copy, nonatomic) NSString *infoIntegrity;            //商家信息完整度
@property (copy, nonatomic) NSString *smsLeave;                 //认证短信剩余条数
@property (copy, nonatomic) NSString *vistorCount;              //今日访客人数

@end

//用户信息
@interface UserInfo : NSObject

//以下信息从登录逻辑中补完
@property (copy, nonatomic) NSString *name;     //姓名
@property (assign, nonatomic) UserType userType;//用户类型
@property (copy, nonatomic) NSString *userUID;  //用户ID(业务唯一编码)
//在登录逻辑中补完
@property (strong, nonatomic) TenantInfo *tenantInfo;   //商户信息
@property (strong, nonatomic) ServiceInfo *serviceInfo; //商户感兴趣的信息

@property (copy, nonatomic) NSString *roleString; //该字段是由role转换为对应的string, 方便使用

@end
